<%@ Reference Control="~/Controls/GroupBlogTabs.ascx" %>
<%@ Reference Control="~/Controls/UserBlogTabs.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.Migrated_blog" CodeFile="blog.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="UserBlogTabs" Tagname="UserBlogTabs" Src="Controls/UserBlogTabs.ascx" %>
<%@ Register tagprefix="GroupBlogTabs" Tagname="GroupBlogTabs" Src="Controls/GroupBlogTabs.ascx" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td colspan="3">
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title">
					<tr>
						<td><asp:label id="lblBlogTitle" runat="server">My Blog</asp:label></td>
						<td align="right"><asp:hyperlink id="hlBackToGroup" runat="server" cssclass="white_link">Back</asp:hyperlink></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top" class="main_table_border" height="100%"><!-- width="556" -->
				<div class="content">
					<table cellSpacing="0" cellPadding="0" width="100%" border="0" class="main_text">
						<UserBlogTabs:UserBlogTabs id="ucBlogTabs" runat="server"></UserBlogTabs:UserBlogTabs>
						<GroupBlogTabs:GroupBlogTabs id="grpBlogTabs" runat="server"></GroupBlogTabs:GroupBlogTabs>
						<tr>
							<td class="small" height="15">&nbsp;</td>
						</tr>
						<tr>
							<td vAlign="top" align="left"><asp:label id="lblNoBlog" runat="server">There are no blogs posted.</asp:label>
								<ASP:DATAGRID id="dgMessages" runat="server" ShowHeader="False" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" Width="100%" GridLines="None" AutoGenerateColumns="False">
									<itemstyle horizontalalign="center" verticalalign="top"></ItemStyle>
									<headerstyle wrap="False"></HeaderStyle>
									<columns>
										<asp:TemplateColumn>
											<itemstyle wrap="False"></ItemStyle>
											<itemtemplate>
												<table class="blog_table" cellspacing="1" cellpadding="0" width="100%" border="0">
													<tr>
														<td align="left" class="main_text">
															<div class="content_trl">
																<asp:Label id=lblDate runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Date") %>' cssclass="blog_date_orange">
																</asp:Label><br>																							
																<b>
																	<asp:Label id=lblSubject runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Subject") %>'>
																	</asp:Label></b><br>
																<br>
																<pre wrap style="WORD-WRAP:break-word;"><asp:Literal id=litBlogBody runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Body") %>'></asp:Literal></pre><br/>
																<asp:Label id="lblTimePosted" runat="server" Font-Bold="True">
																	<%# DataBinder.Eval(Container.DataItem, "Time") %>
																</asp:Label>&nbsp;-&nbsp; <asp:LinkButton id=lbViewComments runat="server" CssClass="main_text_bold" Font-Bold="True" CommandName="ViewComments" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BlogID") %>' Visible='<%# DataBinder.Eval(Container.DataItem, "CommentsCountVisible") %>'>
																	<%# DataBinder.Eval(Container.DataItem, "CommentsCount") %>
																</asp:LinkButton><asp:Label id=lblViewCommentsNull runat="server" CssClass="main_text_bold" Visible='<%# DataBinder.Eval(Container.DataItem, "CommentsCountNullVisible") %>'><b>0 Comments</b></asp:Label>&nbsp;-&nbsp;
																<asp:LinkButton id=lbAddComment runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BlogID") %>' CommandName="AddComment" CssClass="main_text_bold" Font-Bold="True">Add Comment</asp:LinkButton><asp:label id="lblEditDash" runat=server Visible='<%# DataBinder.Eval(Container.DataItem, "EditVisibility") %>' >&nbsp;-&nbsp;</asp:label>
																<asp:LinkButton id=lbEdit runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BlogID") %>' CommandName="Edit" CssClass="main_text_bold" Font-Bold="True"  Visible='<%# DataBinder.Eval(Container.DataItem, "EditVisibility") %>' >Edit Blog</asp:LinkButton><asp:label id="lblEditDash2" runat=server Visible='<%# DataBinder.Eval(Container.DataItem, "EditVisibility") %>' >&nbsp;-&nbsp;</asp:label>
																<asp:LinkButton id=lbRemove runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BlogID") %>' CommandName="Remove" CssClass="main_text_bold" Font-Bold="True"  Visible='<%# DataBinder.Eval(Container.DataItem, "EditVisibility") %>' >Delete Blog</asp:LinkButton>
															</div>
														</td>
													</tr>
												</table>
											</ItemTemplate>
											<footerstyle horizontalalign="Left" verticalalign="top"></FooterStyle>
										</asp:TemplateColumn>
									</Columns>
									<pagerstyle horizontalalign="Right" mode="NumericPages"></PagerStyle>
								</ASP:DATAGRID></td>
						</tr>
					</table>
				</div>
			</td>
			<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
			<!--
			<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
					<table cellSpacing="1" cellPadding="0" width="100%" border="0">
							<tr>
									<td class="small" width="10">&nbsp;</td>
									<td class="advertisement" width="199"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
							</tr>
					</table>
			</td>-->
			<!-- END SKYSCRAPER ADVERTISEMENT -->
		</tr>
	</table>
</form>
